/*

Give the results of each program statement（Suppose it's a 32-bits system）:
char str[] = "world"; cout << sizeof(str) << ": ";
     char *p  = str;   cout << sizeof(p) << ": ";
     char i  = 10;   cout << sizeof(i) << ": ";
     void *pp  = malloc(10); cout << sizeof(pp) << endl;*/

#include <stdio.h>
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{   
    //32位的
    char str[] = "world"; cout << sizeof(str) << ": ";//6字节，还包括最后的\0
     char *p  = str;   cout << sizeof(p) << ": ";//32位指针为32bit，即4位
     char i  = 10;   cout << sizeof(i) << ": ";//1字节
     void *pp  = malloc(10); cout << sizeof(pp) << endl;//32位指针为32bit，即4位
     //故 6 4 1 4
    return 0;
}